home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Compendium Deluxe 2
/
LSD and 17bit Compendium Deluxe - Volume II.iso
/
a
/
prog
/
misc
/
guienv374.lha
/
GUIEnvironment
/
M2Amiga
/
Modules
/
GUIEnvSupport.def
< prev
next >
Wrap
Text File
|
1994-09-14
|
2KB
|
58 lines
(****************************************************************************
$RCSfile: GUIEnvSupport.def $
$Revision: 1.3 $
$Date: 1994/09/14 17:40:34 $
Some needful extra definitions and functions for GUIEnvironment
M2Amiga Modula-2 Compiler V4.3
Copyright © 1994, Carsten Ziegeler
Augustin-Wibbelt-Str.7, 33106 Paderborn, Germany
****************************************************************************)
DEFINITION MODULE GUIEnvSupport;
FROM SYSTEM IMPORT ADDRESS;
FROM GraphicsD IMPORT TextAttrPtr, hiresKey, loresKey, defaultMonitorID,
palMonitorID;
FROM IntuitionD IMPORT GadgetPtr;
FROM UtilityD IMPORT HookPtr, TagItemPtr;
IMPORT R, D:GUIEnvD;
CONST
(* -------------- screen support: displayIDs ----------------------------- *)
gesHiresPalID = hiresKey + palMonitorID;
gesHiresID = hiresKey + defaultMonitorID;
gesLoresPalID = loresKey + palMonitorID;
gesLoresID = loresKey + defaultMonitorID;
(* -------------------------- tag data support --------------------------- *)
gegShiftLeft = 256*256*256;
gegShiftTop = 256*256;
gegShiftWidth = 256;
gegShiftHeight = 1;
PROCEDURE GADDESC(left, top, width, height : CARDINAL):LONGCARD;
PROCEDURE GADOBJS(left, top, width, height : CARDINAL):LONGCARD;
(* ------------------------------- Font support ------------------------- *)
PROCEDURE TopazAttr():TextAttrPtr;
(* ---------------------------- Hook functions -------------------------- *)
PROCEDURE GEUpdateEntryGadgetAHook(hook{R.A0} : HookPtr;
gadget{R.A2} : GadgetPtr;
unused{R.A1} : ADDRESS) : LONGINT;
END GUIEnvSupport.